
(function(ns){

var Shou = ns.Shou = Hilo.Class.create({
    Extends: Hilo.Sprite,
    constructor: function(properties){
		//console.log(properties)
        Shou.superclass.constructor.call(this, properties);
        this.addFrame(properties.atlas.getSprite('hu'));
        this.interval = 6;
        this.pivotX = 0;
        this.pivotY = 0;
		//this.background = "#000000";
    },
    startX: 0, //云的起始x坐标
    startY: 0, //云的起始y坐标
	startRot:0,
	endRot:0,
	endX:0,
	endY:0,
	duration:0,
	scale:0,
	easeDo:null,
    getReady: function(){
        //设置起始坐标
        this.x = this.startX;
        this.y = this.startY;
        this.rotation = this.startRot;
		this.scaleX = this.scale;
		this.scaleY = this.scale;
		this.pivotX = this.width *.5;
		this.pivotY = this.height *.5;
		this.ease = this.easeDo
        this.play();
        this.tween = Hilo.Tween.to(this, {x:this.endX ,y:this.endY, rotation:this.endRot}, {duration:this.duration,ease:this.ease, reverse:true, loop:true});
    },
    onUpdate: function(){
        //console.log("yun")
    }
});

})(window.game);